﻿@model Digital.Contact.Models.UsersModel

@{
    ViewBag.Title = "Edit";
    ViewBag.IsRequest = "class=open";
    Layout = "~/Views/Shared/_LayoutDigital.cshtml";
}

<div class="row">

    <div class="col-md-12">
        
           

            <div class="widget">
                <div class="widget-head">
                  <div class="pull-left">Quick Posts</div>
                  <div class="clearfix"></div>
                </div>
                <div class="widget-content">
                  <div class="padd">
                    <div class="form quick-post">
                                      <!-- Edit profile form (not working)-->
                        @using (Html.BeginForm("Edit","Users",FormMethod.Post,new{@class="form-horizontal"})) {

                                     
                                          @Html.AntiForgeryToken()
                                          @Html.HiddenFor(model => model.ID)
                                          <!-- UserName -->
                                          <div class="form-group">
                                            <label class="control-label col-lg-3" for="title">@Html.DisplayNameFor(model => model.Name)</label>
                                            <div class="col-lg-9"> 
                                                @Html.TextBoxFor(model => model.Name, new { @class = "form-control", Id = "Name" })
                                            </div>
                                          </div>   
                                          <!-- Content -->
                                          <div class="form-group">
                                            <label class="control-label col-lg-3" for="content">@Html.DisplayNameFor(model => model.RegisterDate)</label>
                                            <div class="col-lg-9">
                                                <div id="datetimepicker1" class="input-append">
                                                    <input data-format="yyyy/MM/dd hh:mm:ss" type="text" value="@Model.RegisterDate" class="form-control dtpicker" name="RegisterDate">
                                                    <span class="add-on">
                                                        <i data-time-icon="icon-time" data-date-icon="icon-calendar" class="btn btn-info btn-lg"></i>
                                                    </span>
                                                </div>
                                            </div>
                                          </div>                                   
                                          <!-- Tags -->
                                          <!-- Buttons -->
                                          <div class="form-group">
                                             <!-- Buttons -->
											 <div class="col-lg-offset-2 col-lg-9">
												<button type="submit" class="btn btn-danger">保 存</button>
											 </div>
                                          </div>
                                      }
                                    </div>
                  </div>
                  <div class="widget-foot">
                    <!-- Footer goes here -->
                  </div>
                </div>
              </div>
        </div>
    </div>

        @*<div>
            @Html.ActionLink("Back to List", "Index")
        </div>*@
